package com.example.demo.Controller;

import com.example.demo.AOPTest.MyAspect;
import com.example.demo.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wbg")
public class TestController {

    @Autowired
    private Student student;
    @MyAspect
    @RequestMapping("one")
    public String test01(){
        System.out.println("这是test01方法");
        return"good";
    }

    @RequestMapping("/abc")
    public void test02(){
        System.out.println(student);
    }
}
